﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="X.WebSite.Admin.Ad.List" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <a href="Detail.aspx">新增</a>
    <asp:GridView ID="gvAdList" runat="server" AutoGenerateColumns="False" EnableModelValidation="True"
        OnRowDeleting="gvAdList_RowDeleting" DataKeyNames="Id">
        <Columns>
            <asp:BoundField DataField="AdName" HeaderText="名称" HtmlEncode="false" />
            <asp:CheckBoxField DataField="IsShow" HeaderText="显示" />
            <asp:BoundField DataField="OrderNum" HeaderText="序号" />
            <asp:HyperLinkField DataNavigateUrlFields="Id" DataNavigateUrlFormatString="Detail.aspx?Id={0}"
                Text="编辑" />
            <asp:CommandField ShowDeleteButton="True" />
        </Columns>
    </asp:GridView>
    </form>
</body>
</html>
